package com.moneywelcome.orderassembly.service;

import com.moneywelcome.orderassembly.model.UserFinancial;
import com.baomidou.mybatisplus.extension.service.IService;
import com.moneywelcome.orderfacade.dto.UserFinancialDto;
import com.moneywelcome.orderfacade.vo.OrderPageVo;
import com.moneywelcome.orderfacade.vo.UserFinancialVo;
import com.moneywelcome.results.PageResult;

import java.io.IOException;

/**
 * <p>
 * 用户持仓表 服务类
 * </p>
 *
 * @author alice
 * @since 2022-01-06
 */
public interface UserFinancialService extends IService<UserFinancial> {

    UserFinancialDto create(UserFinancialVo userFinancialVo);

    UserFinancialDto updateShares(Long financialId, Double shares);

    void updateRevenue() throws IOException;

    PageResult<UserFinancialDto> financialQuery(OrderPageVo orderPageVo);
}
